from datetime import datetime
from typing import Any

from langchain_core.tools import BaseTool


class TimeTools(BaseTool):
    def _run(self, *args: Any, **kwargs: Any) -> Any:
        return datetime.now().strftime("%d/%m/%Y, %H:%M:%S")


def time_tools(**kwargs) -> BaseTool:
    return TimeTools()
